{% extends 'base.html' %}
{% block title %}
	<title>Wow Dkp Engine</title>
	<meta name="Keywords" content="wow,dkp"/>
	<meta name="description" content="A wow dkp system" />

{% endblock %}
{% load filter %}
{% block contents %}
<div id="header">
	<div id="main-menu">
		<ul class=menu>
			<li class="normal-page" ><a href="/">{{ multi_language.ca_home }}</a></li>
			<li class="normal-page"><a href="/pub/events/">{{ multi_language.ca_event }}</a></li>
			<li class="normal-page"><a href="/pub/players/">{{ multi_language.ca_players }}</a></li>
			<li class="normal-page"><a href="/pub/overview/class/">{{ multi_language.ca_class }}</a></li>
			<li class="normal-page"><a href="/pub/overview/score/">{{ multi_language.ca_overview}}</a></li>
			<li class="current-page"><a href="/admin/site/">{{ multi_language.ca_admin}}</a></li>
		</ul>
	</div>
</div>
<div id="main">
	<div id="main-sider-bar">
		<div id="sider-body">
			<ul id="admin-menu">
				<li class="normal-page"><a href="/admin/site/">{{ multi_language.ca_site_config }}</a></li>
				<li class="current-page"><a href="/admin/events/">{{ multi_language.ca_event_manage }}</a></li>
				<li class="normal-page"><a href="/admin/players/">{{ multi_language.ca_player_manage }}</a></li>
				<li class="normal-page"><a href="/admin/events/create/">{{ multi_language.ca_create_event }}</a></li>
				<li class="normal-page"><a href="/admin/events/import/">{{ multi_language.ca_import_event }}</a></li>
				<li class="normal-page"><a href="/admin/import/adjust/">{{ multi_language.ca_import_dkp }}</a></li>
			</ul>
		</div>
	</div>
	<div id="main-bar">
	<table id="data-list" cellspacing="0" style="border-collapse:collapse">
	<thead>
		<tr class="table-title">
			<th>{{ multi_language.ca_number }}</th>
			<th>{{ multi_language.ca_id }}</th>
			<th>{{ multi_language.ca_title }}</th>
			<th>{{ multi_language.ca_author }}</th>
			<th>{{ multi_language.ca_date }}</th>
			<th>{{ multi_language.ca_generate }}</th>
			<th>{{ multi_language.ca_edit }}</th>
			<th>{{ multi_language.ca_delete }}</th>
		</tr>
	</thead>
	<tbody>
		{% for event in events %}
			<td>{{ forloop.counter }}</td>
			<td>{{ event.key.id }}</td>
			<td><a href="/admin/events/{{event.key.id}}" title="event">{{ event.title }}</a></td>
			<td>{{ event.author }}</td>
			<td>{{ event.post_on|timezone:8|date:"Y-m-d H:i:s"}}</td>
			<td>{% if event.content %}<a href="/admin/events/generate/{{event.key.id}}" title="generate event">{{ multi_language.ca_generate }}</a>{% endif %}</td>
			<td><a href="/admin/events/edit/{{event.key.id}}">{{ multi_language.ca_edit }}</a></td>
			<td><a href="/admin/events/delete/{{event.key.id}}">{{ multi_language.ca_delete }}</a></td>
			</tr>
		{% endfor %}
	</tbody>
	</table>
	</div>
</div>
{% endblock %}